package com.weaver.openapi.service;

import com.weaver.openapi.pojo.basicserver.params.*;
import com.weaver.openapi.pojo.basicserver.res.*;
import com.weaver.openapi.util.*;
import java.util.*;
import cn.hutool.http.*;
import com.alibaba.fastjson.*;

public class BasicService
{
    public static BasicResultVo checkAccount(final BasicVo basicVo, String host, final Map<String, String> headers) {
        host = HostUtil.beforeRequestCheckHeaders(host, headers, "application/json");
        final Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("access_token", basicVo.getAccessToken());
        paramMap.put("param1", basicVo.getParam1());
        paramMap.put("param2", basicVo.getParam2());
        final String resJson = ((HttpRequest)HttpRequest.post(host + "/api/basicserver/v1/logincheck/checkAccount").body(JSONObject.toJSONString((Object)paramMap)).headerMap((Map)headers, true)).execute().body();
        return (BasicResultVo)JSONObject.parseObject(resJson, (Class)BasicResultVo.class);
    }
}
